package com.example.webserviceclient;

import com.example.webserviceclient.pojo.CxfFileWrapper;

import javax.jws.WebMethod;
import javax.jws.WebParam;
import javax.jws.WebResult;
import javax.jws.WebService;
import javax.xml.ws.RequestWrapper;
import javax.xml.ws.ResponseWrapper;

/**
 * @author 陈乐
 * @version 1.0.0
 * @ClassName FileWS.java
 * @Description TODO
 * @createTime 2022年01月05日 17:14:00
 */
@WebService(name = "WebServices")
public interface FileWS {

    @WebMethod
    @RequestWrapper(localName = "upload", targetNamespace = "http://service.webservicedemo.example.com", className = "com.example.webserviceclient.pojo.Upload")
    @ResponseWrapper(localName = "uploadResponse", targetNamespace = "http://service.webservicedemo.example.com", className = "com.example.webserviceclient.pojo.UploadResponse")
    @WebResult(name = "return", targetNamespace = "")
    public boolean upload(
            @WebParam(name = "file", targetNamespace = "")
                    CxfFileWrapper file
    );
}
